﻿using System;
using System.Configuration;

namespace NDBGen.Configuration
{
    public class SourceFileElement : ConfigurationElement, ICollectionItemElement
    {
        const String PROPNAME_PATH = "path";
        [ConfigurationProperty(PROPNAME_PATH, IsKey = true, IsRequired = true)]
        public String Path
        {
            get { return (String)this[PROPNAME_PATH]; }
            set { this[PROPNAME_PATH] = value; }
        }

        #region [ IConfigurationElement Members ]

        Object ICollectionItemElement.Key
        {
            get { return this.Path; }
        }

        #endregion
    }
}